﻿
using System;

namespace GDFlacTool.Common
{
    public static class ClipBoard
    {
        private static object _clipboardObject;

        public static void SetObject(object dataObject)
        {
            _clipboardObject = dataObject;
        }

        public static object GetObject()
        {
            return _clipboardObject;
        }

        public static bool ContainsObject()
        {
            return _clipboardObject != null;
        }

        public static void Clear()
        {
            _clipboardObject = null;
        }

        public static Type GetObjectType()
        {
            return _clipboardObject.GetType();
        }
    }
}
